<?php
namespace app\index\controller;

use think\Controller;

class Artlist extends Common
{
    public function index()
    {
        $article = new \app\index\model\Article();
        $Articels = $article->getAllArticles(input('cateid'));
        $HotArticles = $article->getHotRes(input('cateid'));
        $page = $Articels->render();
        $this->assign('page',$page);
        $this->assign('HotArticles',$HotArticles);
        $this->assign('Articles',$Articels);
        return $this->fetch('artlist');
    }


}
